var app = angular.module('planner', []);
app.controller('PlannerRecommendsController', function($scope) {
    $scope.city = "上海";
    $scope.showcityoptions= false;
    $scope.opensearch=false;
    $scope.showCities=function($event){
    	$scope.showcityoptions=!$scope.showcityoptions;
    }
    $scope.changeCity=function(city){
    	$scope.showCities();
    	$scope.city = city;
    }
    $scope.openSearch=function(){
    	
    	$scope.opensearch=true;
    }
    $scope.closeSearch=function($event){
    	$scope.opensearch=false;
    }
});

app.controller('RecommendsTabsController', function($scope,$http,$rootScope) {
    $rootScope.return_data='';
    $rootScope.tabindex=0;
    $scope.changeTab=function(index){
        $rootScope.tabindex=index;
        if(index==0){
            $http.get('tmp/0.html',{}).success(function(data,status,headers,config){
                 $rootScope.return_data=data.data;
                 console.log(data.data);
                //$('.recommends-body .inner').html(data);
            }).error(function(data,status,headers,config){
                console.log(data);
            })
        }
    }
    //changeTab(0);
});
app.controller('RecommendsBodyController', function($scope,$rootScope) {
    
});
app.controller('DayDetailsController', function($scope) {
    
});

